﻿using System;
using Survival.Services;
using Microsoft.Xna.Framework;

namespace Survival.Animals
{
    public class Crow : Animal
    {
        private FlockMover crowMover;
        private const float movementforce = 300;
        private const float crowMass = 1f;
        private const float maxSpeed = 200f;

        public override Vector2 Position { get { return crowMover.Position; } }
        public override float Rotation { get { return crowMover.Rotation; } }
        public override string SpriteName { get { return "Crow"; } }


        public Crow(Vector2 position, AnimalServices animalServices) : base(animalServices)
        {
            crowMover = new FlockMover(position, movementforce, crowMass, maxSpeed);
        }

        public override void Update(GameTime gameTime)
        {
            crowMover.MoveTo(AnimalServices.InputService.MousePositionVector);
            crowMover.UpdateMovement(gameTime);
        }
    }
}
